authService.$inject = ['$http'];
var urlBase = '/cv4Backend';

function authService($http) {


  return {
    regist: function (formdata) {
        return $http.post(urlBase + "/auregist", formdata,{
            transformRequest: angular.identity,
            headers: { "Content-Type": undefined }
        });

    },

    login: function (client,callback) {
       $http.post(urlBase + '/aulogin', client).then(function(res){
         console.log("aaaa");
          callback(res);
        }
      );;
    }
  }

}
module.exports = authService;
